package pl.streamsoft.test.currency_buisness.factory;

import java.util.Date;

import pl.streamsoft.test.currency_buisness.dto.CurrencyDTO;
import pl.streamsoft.test.currency_buisness.dto.CurrencyTypeDTO;
import pl.streamsoft.test.model.entities.CurrencyEntity;
import pl.streamsoft.test.model.entities.CurrencyTypeEntity;
import pl.streamsoft.test.model.entities.DateEntryEntity;

public class DummyFactory {

	public static CurrencyDTO createAndFillCurrencyDTO() {
		CurrencyDTO dto = new CurrencyDTO();
		dto.acronym = "CBA";
		dto.date = new Date();
		dto.value = 14.1;
		dto.name = "Cba";
		return dto;
	}

	public static CurrencyEntity createAndFillCurrencyEntity() {
		CurrencyEntity entity = new CurrencyEntity();
		entity.setValue(14.1);
		entity.setDate(new DateEntryEntity(new Date()));
		entity.setType(new CurrencyTypeEntity("Sample", "PLN"));
		return entity;
	}

	public static CurrencyTypeDTO createAndFillCurrencyTypeDTO() {
		CurrencyTypeDTO dto = new CurrencyTypeDTO();
		dto.acronym = "ABC";
		dto.name = "Abc";
		return dto;
	}

	public static CurrencyTypeEntity createAndFillCurrencyTypeEntity() {
		CurrencyTypeEntity entity = new CurrencyTypeEntity();
		entity.setAcronym("PLN");
		entity.setName("Sample");
		return entity;
	}
}
